package com.itheima.dao;

import com.itheima.domain.Account;

public interface IAccountDao {
    //根据id查询
    Account findAccountById(Integer accountId);

    /**
     * 根据name查询
     * @return
     */
    Account findAccountByName(String accountName);

    /**
     * 更新账户
     */
    void updateAccount(Account account);

    /**
     * 删除账户
     */
    void deleteAccount(Integer accountId);
}
